import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/duty_mgmt_day_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/duty_mgmt_day_entity.g.dart';

@JsonSerializable()
class DutyMgmtDayEntity {
	int? id;
	int? companyId;
	String? companyName;
	int? scheduleInfoId;
	int? planDutyPersonId;
	String? planDutyPerson;
	String? planDutyPersonPhone;
	String? planDutyPersonPosition;
	String? planDutyPersonUnit;
	String? planDutyPersonDept;
	int? planDutyLeaderId;
	String? planDutyLeader;
	String? planDutyLeaderPhone;
	int? scheduleConfigId;
	String? scheduleName;
	int? actualDutyPersonId;
	String? actualDutyPerson;
	String? actualDutyPersonPhone;
	String? actualDutyPersonPosition;
	String? actualDutyPersonUnit;
	String? actualDutyPersonDept;
	int? actualDutyLeaderId;
	String? actualDutyLeader;
	String? actualDutyLeaderPhone;
	String? dutyDate;
	String? onDutyTime;
	String? offDutyTime;
	String? weatherInfo;
	String? majorEventInfoId;
	String? floodPreventionInfo;
	String? createTime;

	DutyMgmtDayEntity();

	factory DutyMgmtDayEntity.fromJson(Map<String, dynamic> json) => $DutyMgmtDayEntityFromJson(json);

	Map<String, dynamic> toJson() => $DutyMgmtDayEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}